package org.application.calculator.logic;

public class Division implements Node{

	private Node son1;
	private Node son2;
	
	public Division(Node son1, Node son2){
		this.son1 = son1;
		this.son2 = son2;
	}

	@Override
	public String toString(){
		return son1.toString() + " / " + son2.toString();
	}
	
	public double evaluate(){
		return son1.evaluate() / son2.evaluate();
	}
}
